home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / pipboot / nsISecurityWarningDialogs.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  8KB  |  216 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISecurityWarningDialogs.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISecurityWarningDialogs_h__
  6. #define __gen_nsISecurityWarningDialogs_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIInterfaceRequestor; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsISecurityWarningDialogs */
  21. #define NS_ISECURITYWARNINGDIALOGS_IID_STR "1c399d06-1dd2-11b2-bc58-c87cbcacdb78"
  22.  
  23. #define NS_ISECURITYWARNINGDIALOGS_IID \
  24.   {0x1c399d06, 0x1dd2, 0x11b2, \
  25.     { 0xbc, 0x58, 0xc8, 0x7c, 0xbc, 0xac, 0xdb, 0x78 }}
  26.  
  27. /**
  28.  * Functions that display warnings for transitions between secure
  29.  * and insecure pages, posts to insecure servers etc.
  30.  *
  31.  * @status FROZEN
  32.  */
  33. class NS_NO_VTABLE nsISecurityWarningDialogs : public nsISupports {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISECURITYWARNINGDIALOGS_IID)
  37.  
  38.   /**
  39.    *  Inform the user that a transition 
  40.    *    from an insecure page 
  41.    *    to a secure page
  42.    *  is happening.
  43.    *
  44.    *  @param ctx A user interface context.
  45.    *
  46.    *  @return true if the user confirms to continue
  47.    */
  48.   /* boolean confirmEnteringSecure (in nsIInterfaceRequestor ctx); */
  49.   NS_IMETHOD ConfirmEnteringSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) = 0;
  50.  
  51.   /**
  52.    *  Inform the user that a transition 
  53.    *    from an insecure page 
  54.    *    or from a secure page
  55.    *    to a weak security page
  56.    *  is happening.
  57.    *
  58.    *  @param ctx A user interface context.
  59.    *
  60.    *  @return true if the user confirms to continue
  61.    */
  62.   /* boolean confirmEnteringWeak (in nsIInterfaceRequestor ctx); */
  63.   NS_IMETHOD ConfirmEnteringWeak(nsIInterfaceRequestor *ctx, PRBool *_retval) = 0;
  64.  
  65.   /**
  66.    *  Inform the user that a transition 
  67.    *    from a secure page 
  68.    *    to an insecure page
  69.    *  is happening.
  70.    *
  71.    *  @param ctx A user interface context.
  72.    *
  73.    *  @return true if the user confirms to continue
  74.    */
  75.   /* boolean confirmLeavingSecure (in nsIInterfaceRequestor ctx); */
  76.   NS_IMETHOD ConfirmLeavingSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) = 0;
  77.  
  78.   /**
  79.    *  Inform the user the currently displayed page
  80.    *  contains some secure and some insecure page components.
  81.    *
  82.    *  @param ctx A user interface context.
  83.    *
  84.    *  @return true if the user decides to show insecure objects.
  85.    */
  86.   /* boolean confirmMixedMode (in nsIInterfaceRequestor ctx); */
  87.   NS_IMETHOD ConfirmMixedMode(nsIInterfaceRequestor *ctx, PRBool *_retval) = 0;
  88.  
  89.   /**
  90.    *  Inform the user that information is being submitted
  91.    *  to an insecure page.
  92.    *
  93.    *  @param ctx A user interface context.
  94.    *
  95.    *  @return true if the user confirms to submit.
  96.    */
  97.   /* boolean confirmPostToInsecure (in nsIInterfaceRequestor ctx); */
  98.   NS_IMETHOD ConfirmPostToInsecure(nsIInterfaceRequestor *ctx, PRBool *_retval) = 0;
  99.  
  100.   /**
  101.    *  Inform the user: Although the currently displayed
  102.    *  page was loaded using a secure connection, and the UI probably
  103.    *  currently indicates a secure page, 
  104.    *  that information is being submitted to an insecure page.
  105.    *
  106.    *  @param ctx A user interface context.
  107.    *
  108.    *  @return true if the user confirms to submit.
  109.    */
  110.   /* boolean confirmPostToInsecureFromSecure (in nsIInterfaceRequestor ctx); */
  111.   NS_IMETHOD ConfirmPostToInsecureFromSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) = 0;
  112.  
  113. };
  114.  
  115. /* Use this macro when declaring classes that implement this interface. */
  116. #define NS_DECL_NSISECURITYWARNINGDIALOGS \
  117.   NS_IMETHOD ConfirmEnteringSecure(nsIInterfaceRequestor *ctx, PRBool *_retval); \
  118.   NS_IMETHOD ConfirmEnteringWeak(nsIInterfaceRequestor *ctx, PRBool *_retval); \
  119.   NS_IMETHOD ConfirmLeavingSecure(nsIInterfaceRequestor *ctx, PRBool *_retval); \
  120.   NS_IMETHOD ConfirmMixedMode(nsIInterfaceRequestor *ctx, PRBool *_retval); \
  121.   NS_IMETHOD ConfirmPostToInsecure(nsIInterfaceRequestor *ctx, PRBool *_retval); \
  122.   NS_IMETHOD ConfirmPostToInsecureFromSecure(nsIInterfaceRequestor *ctx, PRBool *_retval); 
  123.  
  124. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  125. #define NS_FORWARD_NSISECURITYWARNINGDIALOGS(_to) \
  126.   NS_IMETHOD ConfirmEnteringSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return _to ConfirmEnteringSecure(ctx, _retval); } \
  127.   NS_IMETHOD ConfirmEnteringWeak(nsIInterfaceRequestor *ctx, PRBool *_retval) { return _to ConfirmEnteringWeak(ctx, _retval); } \
  128.   NS_IMETHOD ConfirmLeavingSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return _to ConfirmLeavingSecure(ctx, _retval); } \
  129.   NS_IMETHOD ConfirmMixedMode(nsIInterfaceRequestor *ctx, PRBool *_retval) { return _to ConfirmMixedMode(ctx, _retval); } \
  130.   NS_IMETHOD ConfirmPostToInsecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return _to ConfirmPostToInsecure(ctx, _retval); } \
  131.   NS_IMETHOD ConfirmPostToInsecureFromSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return _to ConfirmPostToInsecureFromSecure(ctx, _retval); } 
  132.  
  133. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  134. #define NS_FORWARD_SAFE_NSISECURITYWARNINGDIALOGS(_to) \
  135.   NS_IMETHOD ConfirmEnteringSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmEnteringSecure(ctx, _retval); } \
  136.   NS_IMETHOD ConfirmEnteringWeak(nsIInterfaceRequestor *ctx, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmEnteringWeak(ctx, _retval); } \
  137.   NS_IMETHOD ConfirmLeavingSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmLeavingSecure(ctx, _retval); } \
  138.   NS_IMETHOD ConfirmMixedMode(nsIInterfaceRequestor *ctx, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmMixedMode(ctx, _retval); } \
  139.   NS_IMETHOD ConfirmPostToInsecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmPostToInsecure(ctx, _retval); } \
  140.   NS_IMETHOD ConfirmPostToInsecureFromSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmPostToInsecureFromSecure(ctx, _retval); } 
  141.  
  142. #if 0
  143. /* Use the code below as a template for the implementation class for this interface. */
  144.  
  145. /* Header file */
  146. class nsSecurityWarningDialogs : public nsISecurityWarningDialogs
  147. {
  148. public:
  149.   NS_DECL_ISUPPORTS
  150.   NS_DECL_NSISECURITYWARNINGDIALOGS
  151.  
  152.   nsSecurityWarningDialogs();
  153.  
  154. private:
  155.   ~nsSecurityWarningDialogs();
  156.  
  157. protected:
  158.   /* additional members */
  159. };
  160.  
  161. /* Implementation file */
  162. NS_IMPL_ISUPPORTS1(nsSecurityWarningDialogs, nsISecurityWarningDialogs)
  163.  
  164. nsSecurityWarningDialogs::nsSecurityWarningDialogs()
  165. {
  166.   /* member initializers and constructor code */
  167. }
  168.  
  169. nsSecurityWarningDialogs::~nsSecurityWarningDialogs()
  170. {
  171.   /* destructor code */
  172. }
  173.  
  174. /* boolean confirmEnteringSecure (in nsIInterfaceRequestor ctx); */
  175. NS_IMETHODIMP nsSecurityWarningDialogs::ConfirmEnteringSecure(nsIInterfaceRequestor *ctx, PRBool *_retval)
  176. {
  177.     return NS_ERROR_NOT_IMPLEMENTED;
  178. }
  179.  
  180. /* boolean confirmEnteringWeak (in nsIInterfaceRequestor ctx); */
  181. NS_IMETHODIMP nsSecurityWarningDialogs::ConfirmEnteringWeak(nsIInterfaceRequestor *ctx, PRBool *_retval)
  182. {
  183.     return NS_ERROR_NOT_IMPLEMENTED;
  184. }
  185.  
  186. /* boolean confirmLeavingSecure (in nsIInterfaceRequestor ctx); */
  187. NS_IMETHODIMP nsSecurityWarningDialogs::ConfirmLeavingSecure(nsIInterfaceRequestor *ctx, PRBool *_retval)
  188. {
  189.     return NS_ERROR_NOT_IMPLEMENTED;
  190. }
  191.  
  192. /* boolean confirmMixedMode (in nsIInterfaceRequestor ctx); */
  193. NS_IMETHODIMP nsSecurityWarningDialogs::ConfirmMixedMode(nsIInterfaceRequestor *ctx, PRBool *_retval)
  194. {
  195.     return NS_ERROR_NOT_IMPLEMENTED;
  196. }
  197.  
  198. /* boolean confirmPostToInsecure (in nsIInterfaceRequestor ctx); */
  199. NS_IMETHODIMP nsSecurityWarningDialogs::ConfirmPostToInsecure(nsIInterfaceRequestor *ctx, PRBool *_retval)
  200. {
  201.     return NS_ERROR_NOT_IMPLEMENTED;
  202. }
  203.  
  204. /* boolean confirmPostToInsecureFromSecure (in nsIInterfaceRequestor ctx); */
  205. NS_IMETHODIMP nsSecurityWarningDialogs::ConfirmPostToInsecureFromSecure(nsIInterfaceRequestor *ctx, PRBool *_retval)
  206. {
  207.     return NS_ERROR_NOT_IMPLEMENTED;
  208. }
  209.  
  210. /* End of implementation class template. */
  211. #endif
  212.  
  213. #define NS_SECURITYWARNINGDIALOGS_CONTRACTID "@mozilla.org/nsSecurityWarningDialogs;1"
  214.  
  215. #endif /* __gen_nsISecurityWarningDialogs_h__ */
  216.